<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!--360浏览器优先以webkit内核解析-->


    <title>修改员工权限</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">


</head>

<body class="gray-bg">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-content">
                    <h2 class="text-warning">
                        修改员工信息
                    </h2>
                    <p>
                        * 为必填项 ; 员工账号用于公司内部使用，请妥善保管账号和密码 ;  员工在系统内的操作将记录在日志里
                        <a  type="button" class="btn btn-danger btn-xs" onclick="show_confirm()">永久删除员工</a>
                        <script type="text/javascript">
                            function show_confirm()
                            {
                                if(confirm("确定永久删除此员工吗？"))
                                {
                                    //如果是true ，那么就把页面转向thcjp.cnblogs.com
                                    location.href="{:U('power/del')}?id={$data.id}";
                                }
                                else
                                {
                                    //否则说明下了，赫赫
                                    alert("已取消 ");
                                }
                            }
                        </script>
                    </p>
                    <br><br><br><br>

                    <form id="form" action="{:U('power/amend')}" method="post" class="wizard-big">

                        <h1>账号信息</h1>
                        <hr>
                        <fieldset>
                            <div class="row">
                                <div class="col-lg-8">
                                    <div class="form-group">
                                        <label>账号 *</label>
                                        <input id="userName" name="name" value="{$data.name}" placeholder="建议超过6"  disabled type="text" class="form-control required">
                                        <input id="id" name="id" value="{$data.id}" type="hidden"   class="form-control required">
                                    </div>

                                </div>
                            </div>
                        </fieldset>

                        <!--<h1>员工信息</h1>-->
                        <hr>
                        <fieldset>

                            <!--<small>员工信息</small>-->
                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label>角色类型 *</label>
                                        <select class="form-control m-b" name="role">
                                            <option value="{$data.role}">- {$data.roleName} -</option>
                                            <option value="1">管理员</option>
                                            <option value="2">研发人员</option>
                                            <option value="3">运营人员</option>
                                            <option value="4">客服人员</option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label>Email *</label>
                                        <input id="email" name="email" disabled type="text" value="{$data.email}" class="form-control required email">
                                    </div>
                                    <div class="form-group">
                                        <label>手机号 </label>
                                        <input id="iphone" name="iphone" disabled type="number"  value="{$data.iphone}" class="form-control">
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                        <br>


                        <h1>分配权限</h1>
                             <fieldset>
                        <!--<h2>分配权限</h2>-->
                   
                        <div class="col-lg-12">
                            <div class="form-group"   >
                                <label class="col-sm-2 control-label"><small class="text-danger">跑马灯发布公告</small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="1001" <?php echo  in_array('1001',$result)?'checked':''; ?>>
                                    <i></i>发布公告</label></div>
                                </div>



                            </div>
                            &nbsp;
                            <div class="form-group"   >
                                <label class="col-sm-2 control-label"><small class="text-danger">游戏卡</small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="2001" <?php echo  in_array('2001',$result)?'checked':''; ?>><i></i>游戏卡查询</label></div>

                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="2003" <?php echo  in_array('2003',$result)?'checked':''; ?>><i></i>游戏卡生成</label></div>
                                </div>

                            </div>
                            &nbsp;
                            <div class="form-group"   >
                                <label class="col-sm-2 control-label"><small class="text-danger">银币卡</small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="1401" <?php echo  in_array('1401',$result)?'checked':''; ?>><i></i>银币卡卡查询</label></div>

                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="1402" <?php echo  in_array('1402',$result)?'checked':''; ?>><i></i>银币卡增加减少</label></div>
                                </div>

                            </div>
                            &nbsp;
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><small class="text-danger">用户管理</small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label> <input name="power[]"  type="checkbox" value="3001" <?php echo  in_array('3001',$result)?'checked':''; ?>><i></i>查看玩家基础信息</label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3002" <?php echo  in_array('3002',$result)?'checked':''; ?>>  <i></i>搜索玩家</label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3003" <?php echo  in_array('3003',$result)?'checked':''; ?>><i></i>充值信息查询</label></div>
                                </div>
                                <div class="col-sm-2"></div>
                                <div class="col-sm-10 text-secondary">
                                     <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3004" <?php echo  in_array('3004',$result)?'checked':''; ?>><i></i> 游戏信息查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3005" <?php echo  in_array('3005',$result)?'checked':''; ?>><i></i> 游戏详情查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3006" <?php echo  in_array('3006',$result)?'checked':''; ?>><i></i> 修改登录密码 </label></div>
                                </div>
                                <div class="col-sm-2"></div>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3008" <?php echo  in_array('3008',$result)?'checked':''; ?>><i></i> 封号 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3009" <?php echo  in_array('3009',$result)?'checked':''; ?>><i></i> 踢人 </label></div>
                                    <div class="i-checks col-md-4"><label> <input name="power[]"  type="checkbox" value="3012" <?php echo  in_array('3012',$result)?'checked':''; ?>> <i></i>查询单个普通玩家</label></div>
                                </div>
                                <div class="col-sm-2"></div>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="3013" <?php echo  in_array('3013',$result)?'checked':''; ?>><i></i> 设置测试玩家按钮 </label></div>
                                </div>
                                <div class="col-sm-2"></div>
                            </div>
                            &nbsp;
                            <div class="form-group" >
                                <label class="col-sm-2 control-label"><small class="text-danger">充值统计 </small>权限</label>
                                <div class="col-sm-10 ">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1101" <?php echo  in_array('1101',$result)?'checked':''; ?>> <i></i>充值统计查询 </label></div>
                                </div>
                                <div class="col-sm-2"></div>
                            </div>

                            &nbsp;
                            <div class="form-group"  >
                                <label class="col-sm-2 control-label"><small class="text-danger">兑换审核</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1301" <?php echo  in_array('1301',$result)?'checked':''; ?>><i></i>兑换审核查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1302" <?php echo  in_array('1302',$result)?'checked':''; ?>><i></i>兑换审核操作 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1303" <?php echo  in_array('1303',$result)?'checked':''; ?>><i></i>兑换审核通过列表 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1304" <?php echo  in_array('1304',$result)?'checked':''; ?>><i></i>兑换审核未通过列表 </label></div>
                                </div>
                            </div>
                            &nbsp;
                            <div class="form-group"  >
                                <label class="col-sm-2 control-label"><small class="text-danger">游戏公告</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1202" <?php echo  in_array('1202',$result)?'checked':''; ?>><i></i>游戏公告查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1201" <?php echo  in_array('1201',$result)?'checked':''; ?>><i></i>游戏公告发布 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1203" <?php echo  in_array('1203',$result)?'checked':''; ?>><i></i>游戏公告修改 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="1204" <?php echo  in_array('1204',$result)?'checked':''; ?>><i></i>游戏公告删除 </label></div>
                                </div>
                            </div>
                            &nbsp;
                            <div class="form-group"  >
                                <label class="col-sm-2 control-label"><small class="text-danger">在线客服</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9200" <?php echo  in_array('9200',$result)?'checked':''; ?>><i></i>在线客服查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9201" <?php echo  in_array('9201',$result)?'checked':''; ?>><i></i>在线客服处理 </label></div>
                                </div>
                            </div>
                            &nbsp;
                            <div class="form-group"   >
                                <label class="col-sm-2 control-label"><small class="text-danger">游戏统计 </small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label ><input name="power[]"  type="checkbox" value="5001" <?php echo  in_array('5001',$result)?'checked':''; ?>><i></i> 游戏统计查询 </label></div>
                                </div>
                            </div>
                            &nbsp;
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><small class="text-danger">留存统计 </small>权限</label>
                                <div class="col-sm-10 text-secondary">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="6001" <?php echo  in_array('6001',$result)?'checked':''; ?>><i></i>留存统计查询 </label></div>
                                </div>
                                <div class="col-sm-2"></div>
                            </div>
                            &nbsp;
                            <div class="form-group"  >
                                <label class="col-sm-2 control-label"><small class="text-danger">支付配置</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9100" <?php echo  in_array('9100',$result)?'checked':''; ?>><i></i>支付配置更新 </label></div>
                                </div>
                            </div>

                            &nbsp;
                            <div class="form-group"   >
                                <label class="col-sm-2 control-label"><small class="text-danger">冻结管理</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="7001" <?php echo  in_array('7001',$result)?'checked':''; ?>><i></i>冻结账号查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="7002" <?php echo  in_array('7002',$result)?'checked':''; ?>><i></i> 解冻账号 </label></div>

                                    <div class="i-checks col-md-4"><label> <input name="power[]"  type="checkbox" value="7003" <?php echo  in_array('7003',$result)?'checked':''; ?> > <i></i>冻结IP查询 </label></div>
                                    <div class="i-checks col-md-4"><label> <input name="power[]"  type="checkbox" value="7004" <?php echo  in_array('7004',$result)?'checked':''; ?> > <i></i> 添加解冻IP </label></div>
                                </div>
                            </div>

                            &nbsp;
                             <div class="form-group"  >
                                <label class="col-sm-2 control-label"><small class="text-danger">其他</small>权限</label>
                                <div class="col-sm-10 text-dark">
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9001" <?php echo  in_array('9001',$result)?'checked':''; ?>><i></i>创建管理员账号 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9002" <?php echo  in_array('9002',$result)?'checked':''; ?>><i></i>修改管理员权限 </label></div>
                                     <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9003" <?php echo  in_array('9003',$result)?'checked':''; ?>><i></i>gameid </label></div>
                                     <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9004" <?php echo  in_array('9004',$result)?'checked':''; ?>><i></i>操作日志查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9005" <?php echo  in_array('9005',$result)?'checked':''; ?>><i></i>登陆日志查询 </label></div>
                                    <div class="i-checks col-md-4"><label><input name="power[]"  type="checkbox" value="9006" <?php echo  in_array('9006',$result)?'checked':''; ?>><i></i>扣除金币日志查询 </label></div>

                                </div>
                            </div>
                            &nbsp;
                        </div>
                   
                    </fieldset>


                        <hr>
                        <div class="col-md-3"></div>
                        <div class="col-md-6">
                            <button   type="submit" class="col-md-4 btn btn-warning btn-sm btn-block "><i
                                    class="fa fa-plus-square"></i> 确认修改信息
                            </button>

                        </div>
                        <br>
                        <br>

                    </form>
                </div>
            </div>
        </div>

    </div>


    <!-- 全局js -->
    <script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
    <script src="{$Think.const.RESOURCE}js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="{$Think.const.RESOURCE}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="{$Think.const.RESOURCE}js/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <script src="{$Think.const.RESOURCE}js/hplus.js?v=4.1.0"></script>
    <script type="text/javascript" src="{$Think.const.RESOURCE}js/contabs.js"></script>

    <!-- 第三方插件 -->
    <script src="{$Think.const.RESOURCE}js/plugins/pace/pace.min.js"></script>

</body>

</html>



<block name="js">
    <!-- Steps -->
    <script src="{$Think.const.RESOURCE}js/plugins/staps/jquery.steps.min.js"></script>

    <!-- Jquery Validate -->
    <script src="{$Think.const.RESOURCE}js/plugins/validate/jquery.validate.min.js"></script>


    <!--iCheck -->
    <script src="{$Think.const.RESOURCE}js/plugins/iCheck/icheck.min.js"></script>
    <script>
        // $(document).ready(function () {
        //     $('.i-checks').iCheck({
        //         checkboxClass: 'icheckbox_square-green',
        //         radioClass: 'iradio_square-green',
        //     });
        // });
    </script>

</block>